package states.designer
{
	import components.Circle;
	import components.Link;
	import components.LinkData;
	
	import oboe.core.Controller;
	
	public final class DesignerLink extends Link
	{
		public function DesignerLink(start:Circle, end:Circle, data:Object=null)
		{
			super(start, end, data);
		}
		
		override public function getPerspectiveData():Object
		{
			var d:LinkData = this.getUpdatedData() as LinkData;
			return {
				start : d.event,
				end : d.action
			};
		}

		override public function setPerspectiveData(data:Object):void
		{
			var d:LinkData = this.getData() as LinkData;
			d.event = data.start;
			d.action = data.end;
		}
	}
}